package com.cbg.archives.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 个人档案模块位置移动VO
 *
 * @author wangjuzheng
 * @date 2019-10-30
 **/
@Data
public class ModularDirectionsVO implements Serializable {

    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id")
    @NotNull(message = "分类id为空")
    private Long archivesId;

    /**
     * 模块id
     */
    @ApiModelProperty(value = "模块id")
    @NotNull(message = "模块id为空")
    private Long modularId;

    /**
     * 移动方向区分(1左移 2右移)
     */
    @ApiModelProperty(value = "移动方向区分(1左移 2右移)")
    @NotNull(message = "移动方向为空")
    @Min(value = 1,message = "请输入正确的移动方向")
    @Max(value = 2,message = "请输入正确的移动方向")
    private Integer directionType;
}
